<% form_for :comment, :url => { :action => :create } do |form| %>
<p>Title: <%= form.text_field :title, :size => 40 %></p>
<p>Comment: <%= form.text_area :comment, :rows => 3 %></p>
<p><%= form.hidden_field :commentable_type, :size => 10, :value=> params[:commentable_type] %></p>
<p><%= form.hidden_field :commentable_id, :size => 10, :value=> params[:commentable_id] %></p>
<p><%= submit_tag %></p>
<% end %>